Skip to content

tools: mock some Python utils in v8.nix to reuse builds#63454

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
aduh95:v8.nix-refine-inputs
May 22, 2026
Merged

tools: mock some Python utils in v8.nix to reuse builds#63454
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
aduh95:v8.nix-refine-inputs

Conversation

@aduh95
Copy link
Copy Markdown
Contributor

@aduh95 aduh95 commented May 20, 2026

TL;DR: this change allows us to avoid unnecessary rebuilds on CI.

Because our tooling is not at all tailored for building V8 separately, v8.nix lists as inputs things that are not related to building V8, causing the cached builds to be invalidated on some unrelated changes. Ideally we would have only things that affect the V8 build as inputs of the v8.nix, that way we would spend GHA time on rebuilding V8 on test-shared only when we actually need it – but there's a tradeoff to be made between avoid unnecessary rebuilds and keeping the maintenance burden of v8.nix low enough.

I noticed when working on preparing 26.2.0 that the CI had to rebuild V8 between the tip of the staging branch and the release proposal, just because the node version got bumped, even though the node version has nothing to do with V8 or how it gets built. That PR removes node_version.h from the inputs, as well as all the Python helper files that are helping setting stuff unrelated to V8.

Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@aduh95 aduh95 added dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. labels May 20, 2026
@nodejs-github-bot nodejs-github-bot added the tools Issues and PRs related to the tools directory. label May 20, 2026
@aduh95 aduh95 requested review from cjihrig and panva May 22, 2026 17:46
@aduh95 aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. labels May 22, 2026
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 22, 2026
@nodejs-github-bot nodejs-github-bot merged commit 11ea171 into nodejs:main May 22, 2026
45 checks passed
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Landed in 11ea171

@aduh95 aduh95 deleted the v8.nix-refine-inputs branch May 22, 2026 21:13
aduh95 added a commit that referenced this pull request May 22, 2026
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: #63454
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. tools Issues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants